package com.hnhy.bluetooth

import android.app.Application
import android.content.Context
import com.hnhy.bluetooth.ble.BleCore

class BleApp : Application() {

    private lateinit var context: Context
    private lateinit var bleCore: BleCore

    override fun onCreate() {
        super.onCreate()
        context = applicationContext
        //初始化Ble核心库
        bleCore = BleCore.getInstance(this)
    }

    fun getBleCore() = bleCore
}